home *** CD-ROM | disk | FTP | other *** search
- Path: news.blkbox.COM!usenet
- From: barnowl@blkbox.com (Ken Williams)
- Newsgroups: comp.lang.c
- Subject: Re: OpenVMS system service routines
- Date: Tue, 05 Mar 1996 02:28:15 GMT
- Organization: The Black Box, Houston, Tx (713) 480-2686
- Message-ID: <313ba5aa.7218271@news.blkbox.com>
- References: <4h2jji$8mp@fish.pond.com>
- NNTP-Posting-Host: s54.max0.houston.box.net
- X-Newsreader: Forte Agent .99d/32.182
-
- On 28 Feb 1996 22:05:38 GMT, kannag@rpr.rpna.com wrote:
-
- >I'm trying to access the authorization file (UAF.DAT) to check the encrypted password and
- >other user specific information. I'm using the SYS$HASH_PASSWORD and SYS$GETUAI
- >routines. They seem to be working - the return status from my calls is a 1. However, the
- >length that is returned is always some huge number, and the encryped password I get back from
- >the GETUAI routine does not match the one returned from HASH_PASSWORD (i've made
- >sure to use the right SALT and ALGORITHM parameters).
- >
- >I think my problems stem from the data structure being passed to the routines. The encryped
- >password routine excepts a quadword (8 bytes). I've tried using double, long int, char,
- >and a struct of two ints - all to no avail.
- >
- >Any comments from VAX System Gurus......
- >
- >Thanx in advance,
- >Ganesh.
- >
- I'm not exactly a VAX system guru but, I have been working on VMS for
- about 14 years. Have you thoroughly read the section of the C manual
- on calling other languages? It explains how to set up data structures
- for the more standard (for VMS not C) structures. You might also look
- in the chapters in the System Services reference manuals on calling
- system services. I'd be more specific but, I'm not at work and I
- don't have access to my documentation.
-
-
- Ken Williams
- barnowl@blkbox.com
- PGP Key Available On Request
-